From: Stéphane Démurget Date: Sat, 3 Nov 2012 20:14:53 +0000 (+0100) Subject: dash: simplify app retrieval from AppWellIcon X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5466 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=95abdeb919083809c30528c32e844d10b4bdfda9;p=gnome-shell.git dash: simplify app retrieval from AppWellIcon This has also the benefit of getting the application even if it can not be retrieved through AppSystem, which can happen if the runtime WMClass does not match the one of the desktop file. This especially looked wrong with the following commits related to the bug. https://bugzilla.gnome.org/show_bug.cgi?id=657315 --- diff --git a/js/ui/dash.js b/js/ui/dash.js index 21594b59c..d367aaac9 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -23,8 +23,7 @@ const DASH_ITEM_HOVER_TIMEOUT = 300; function getAppFromSource(source) { if (source instanceof AppDisplay.AppWellIcon) { - let appSystem = Shell.AppSystem.get_default(); - return appSystem.lookup_app(source.getId()); + return source.app; } else if (source.metaWindow) { let tracker = Shell.WindowTracker.get_default(); return tracker.get_window_app(source.metaWindow);